package utils.nfc.xml
{
	public class Value
	{
		private var type:String;	
		private var content:String;
		
		public static var VALUE_TYPE_URI:String 	= "uri";
		public static var VALUE_TYPE_NUMBER:String 	= "number";
		public static var VALUE_TYPE_TEXT:String 	= "text";
		public static var VALUE_TYPE_MAIL:String 	= "mail";
		public static var VALUE_TYPE_SSID:String 	= "ssid";
		public static var VALUE_TYPE_PASS:String 	= "pass";
		public static var VALUE_TYPE_TYPE:String 	= "type";
		
		
		public function Value(type:String, content:String ){
			this.type = type;
			this.content = content;
		}
		
		public function toXML():XML{
			var value:XML = <value/>;
			value.@type = type;
			value.@content = content;
			
			return value;
		}
	}
}